137

The Genius of Collaboration

137

Motion—​enables detection of motion by taking a snapshot.

This stores an image every time the camera detects motion in a folder of your

choice.

Here are the settings for motion control.

FIGURE 10.2  Settings of Yawcam.

10.2  BURGLAR ALARM

The settings are explained very well on their website. Note the naming convention for

the images—​this ensures that each image is date and time stamped so you can easily

retrieve the ones you need. The flood control feature limits the snapshots so that you

do not run out of disk space on your computer.

Also note the send email feature. Once motion has been detected, the software

can automatically use your default email application and send a picture to your email

id—​which you can retrieve from your smartphone. This feature does not require any

coding at all—​perfect machine to machine collaboration that can serve you well as

a burglar alarm if you set up in your home while you are away. This achieves our

first goal.

10.3  COUNTING PEOPLE

To count the number of people who enter your store, you could use the same motion

detection feature and count the number of files generated. The only problem is you

might run out of space. To get over this problem it is possible to write a short program

that maintains the number of pictures in a spreadsheet by date and then deletes the

pictures. The code looks something like this (change the folder paths to your own):